<template>
	<view>
		<view class="lc-box">
			<image src="/static/news.png" mode="widthFix"></image>
			<view class="lc-title">{{detail.title}}</view>
			<view class="lc-detail">
				<rich-text :nodes="detail.content"></rich-text>
			</view>
			<view class="lc-time">{{detail.createtime_text}}</view>
		</view>
		<view class="lc-null"></view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				app: getApp().globalData,
				detail: {}
			}
		},
		onLoad(e) {
			uni.setNavigationBarTitle({
				title: '消息'
			})
			this.app.post('/api/wanlshop/article/details', {
				id: e.id,
			}).then(res => {
				console.log(res)
				this.detail = res
			})
		},
		methods: {

		}
	}
</script>

<style lang="scss">
	
	.lc-box {
		width: 690rpx;
		background-color: #FFFFFF;
		border-radius: 16rpx;
		display: flex;
		flex-wrap: wrap;
		justify-content: center;
		margin-left: 30rpx;
		margin-top: 30rpx;
		padding: 56rpx 0;

		image {
			width: 86rpx;
			height: 86rpx;
		}

		.lc-title {
			width: 100%;
			text-align: center;
			font-size: 24rpx;
			color: #3D3D3D;
			margin-top: 10rpx;
		}

		.lc-detail {
			width: 630rpx;
			font-size: 30rpx;
			color: #3D3D3D;
			padding: 50rpx 0;
		}

		.lc-time {
			width: 630rpx;
			font-size: 26rpx;
			color: #999999;
			text-align: right;
		}
	}
</style>